import request from '@/utils/request'

const api = {
	sendBindMobileMessage: '/api/message.Phone_message/sendBindMobileMessage',
	sendBindMessage:'/api/message.Phone_message/sendBindMessage',
	newPhoneMessage:'/api/message.Phone_message/newPhoneMessage',
	sendSmsCaptcha: '/index.php?s=/api/message.Phone_message/sendMessage',
	sendMessageRegister:'/api/message.Phone_message/sendMessageRegister',
}

// 绑定手机号
export const sendBindMobileMessage = param => {
  return request.post(api.sendBindMobileMessage, param )
}

// 换绑手机号
export const sendBindMessage = param => {
  return request.post(api.sendBindMessage, param )
}
// 修改密码
export const newPhoneMessage = param => {
  return request.post(api.newPhoneMessage, param )
}
// 登录
export const sendSmsCaptcha = param => {
  return request.post(api.sendSmsCaptcha, param )
}
// 注册
export const sendMessageRegister = param => {
  return request.post(api.sendMessageRegister, param )
}